#!/bin/bash
yum install -y httpd php php-fpm mysql mysql-server php-mysql
yum reinstall -y httpd php php-fpm mysql mysql-server php-mysql
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server --nogpgcheck
service httpd start
chkconfig httpd on
service php-fpm start
chkconfig php-fpm on
systemctl stop firewalld.service
systemctl status firewalld
systemctl start mysqld
systemctl enable mysqld.service
wget http://download.comsenz.com/DiscuzX/3.3/Discuz_X3.3_SC_UTF8.zip
unzip Discuz_X3.3_SC_UTF8.zip
cp -r upload/* /var/www/html
chmod -R 777 /var/www/html

